Optimal. Leaf size=158 \[ -\frac {4 \cos (c+d x)}{45 d \sqrt {a+a \sin (c+d x)}}-\frac {2 \cos (c+d x) \sin ^3(c+d x)}{63 d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^4(c+d x)}{9 d \sqrt {a+a \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{315 a d}-\frac {4 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{105 a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 158, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {2958, 3060,
2849, 2838, 2830, 2725} \begin {gather*} -\frac {4 \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{105 a^2 d}+\frac {2 \sin ^4(c+d x) \cos (c+d x)}{9 d \sqrt {a \sin (c+d x)+a}}-\frac {2 \sin ^3(c+d x) \cos (c+d x)}{63 d \sqrt {a \sin (c+d x)+a}}+\frac {8 \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{315 a d}-\frac {4 \cos (c+d x)}{45 d \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2830
Rule 2838
Rule 2849
Rule 2958
Rule 3060
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x) \sin ^3(c+d x)}{\sqrt {a+a \sin (c+d x)}} \, dx &=\frac {\int \sin ^3(c+d x) (a-a \sin (c+d x)) \sqrt {a+a \sin (c+d x)} \, dx}{a^2}\\ &=\frac {2 \cos (c+d x) \sin ^4(c+d x)}{9 d \sqrt {a+a \sin (c+d x)}}+\frac {\int \sin ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx}{9 a}\\ &=-\frac {2 \cos (c+d x) \sin ^3(c+d x)}{63 d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^4(c+d x)}{9 d \sqrt {a+a \sin (c+d x)}}+\frac {2 \int \sin ^2(c+d x) \sqrt {a+a \sin (c+d x)} \, dx}{21 a}\\ &=-\frac {2 \cos (c+d x) \sin ^3(c+d x)}{63 d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^4(c+d x)}{9 d \sqrt {a+a \sin (c+d x)}}-\frac {4 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{105 a^2 d}+\frac {4 \int \left (\frac {3 a}{2}-a \sin (c+d x)\right ) \sqrt {a+a \sin (c+d x)} \, dx}{105 a^2}\\ &=-\frac {2 \cos (c+d x) \sin ^3(c+d x)}{63 d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^4(c+d x)}{9 d \sqrt {a+a \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{315 a d}-\frac {4 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{105 a^2 d}+\frac {2 \int \sqrt {a+a \sin (c+d x)} \, dx}{45 a}\\ &=-\frac {4 \cos (c+d x)}{45 d \sqrt {a+a \sin (c+d x)}}-\frac {2 \cos (c+d x) \sin ^3(c+d x)}{63 d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^4(c+d x)}{9 d \sqrt {a+a \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{315 a d}-\frac {4 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{105 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.90, size = 97, normalized size = 0.61 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) (-124+60 \cos (2 (c+d x))-201 \sin (c+d x)+35 \sin (3 (c+d x)))}{630 d \sqrt {a (1+\sin (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 5.10, size = 74, normalized size = 0.47
method | result | size |
default | \(-\frac {2 \left (1+\sin \left (d x +c \right )\right ) \left (\sin \left (d x +c \right )-1\right )^{2} \left (35 \left (\sin ^{3}\left (d x +c \right )\right )+30 \left (\sin ^{2}\left (d x +c \right )\right )+24 \sin \left (d x +c \right )+16\right )}{315 \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 136, normalized size = 0.86 \begin {gather*} \frac {2 \, {\left (35 \, \cos \left (d x + c\right )^{5} + 40 \, \cos \left (d x + c\right )^{4} - 64 \, \cos \left (d x + c\right )^{3} - 82 \, \cos \left (d x + c\right )^{2} - {\left (35 \, \cos \left (d x + c\right )^{4} - 5 \, \cos \left (d x + c\right )^{3} - 69 \, \cos \left (d x + c\right )^{2} + 13 \, \cos \left (d x + c\right ) + 26\right )} \sin \left (d x + c\right ) + 13 \, \cos \left (d x + c\right ) + 26\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{315 \, {\left (a d \cos \left (d x + c\right ) + a d \sin \left (d x + c\right ) + a d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.60, size = 103, normalized size = 0.65 \begin {gather*} -\frac {4 \, \sqrt {2} {\left (280 \, \sqrt {a} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 540 \, \sqrt {a} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 378 \, \sqrt {a} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 105 \, \sqrt {a} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3}\right )}}{315 \, a d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\cos \left (c+d\,x\right )}^2\,{\sin \left (c+d\,x\right )}^3}{\sqrt {a+a\,\sin \left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________